#include "sound.h"

Sound::Sound(void) {

}

Sound::~Sound(void) {
}

void Sound::start() {
	CL_SetupSound setup_sound;
	CL_SetupVorbis setup_vorbis;
	CL_SoundOutput output(44100);

	CL_SoundBuffer buffer("res/background.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.set_volume(0.5f);
	bufferSession.set_looping(true);
	bufferSession.play();
}

void Sound::coin() {
	CL_SoundBuffer buffer("res/coin.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::catched() {
	CL_SoundBuffer buffer("res/catched.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::beer() {
	CL_SoundBuffer buffer("res/beer.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::habanero() {
	CL_SoundBuffer buffer("res/habanero.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::kebab() {
	CL_SoundBuffer buffer("res/kebab.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::goal() {
	CL_SoundBuffer buffer("res/goal.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::brush() {
	CL_SoundBuffer buffer("res/brush.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}

void Sound::enemyDown() {
	CL_SoundBuffer buffer("res/enemyDown.wav");
	CL_SoundBuffer_Session bufferSession = buffer.prepare();
	bufferSession.play();
}
